package org.ws.task.listener.netty;


import io.netty.channel.Channel;

public interface ChannelChangeListener {

    /**
     * 连接
     * @param remote
     * @param channel
     */
    void onConnect(String remote, Channel channel);

    /**
     * 关闭
     * @param remote
     * @param channel
     */
    void onClose(String remote, Channel channel);

    /**
     * 异常
     * @param remote
     * @param channel
     */
    void onException(String remote, Channel channel);

    /**
     * 丢失心跳
     * @param remote
     * @param channel
     */
    void onIdle(String remote, Channel channel);
}
